import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';
import { PagingReqDto } from '../../../../common/dtos/paging.req.dto';

export class GetAreaListAdminReqDto extends PagingReqDto {
  @ApiProperty({ description: '区域名称，支持模糊搜索', required: false })
  @IsString({ message: '区域名称格式不正确' })
  @IsOptional()
  readonly name: string;
}
